package com.cec.controller.user;

import com.cec.dto.VolunteerDTO;
import com.cec.result.Result;
import com.cec.service.admin.VolunteerService;
import com.cec.service.user.UserVolunteerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user/volunteer")
@Api(tags = "志愿者")
public class UserVolunteerController {
    @Autowired
    private UserVolunteerService userVolunteerService;

    @GetMapping
    @ApiOperation("查询优秀志愿者")
    public Result queryOutstandingVolunteer(VolunteerDTO volunteerDTO){
        return userVolunteerService.queryOutstandingVolunteer(volunteerDTO);
    }
}
